package com.weikuang.fareast.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;

import cn.dlc.commonlibrary.ui.base.BaseCommonFragment;
import cn.dlc.commonlibrary.utils.PrefUtil;


public abstract class BaseFragment extends BaseCommonFragment {

    //处理每个Fragment都需要执行的逻辑
    @Override
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
    }

    /**
     * 保存订单数据
     * @param data
     */
    public void savedata(String data){
        PrefUtil.getDefault().putString("orderData",data).apply();
    }
}

